package com.neuedu.service;

import com.neuedu.entity.UmsStudent;
import com.baomidou.mybatisplus.extension.service.IService;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

/**
 * <p>
 * 学生表 服务类
 * </p>
 *
 * @author wangyu
 * @since 2025-09-03
 */
public interface UmsStudentService extends IService<UmsStudent> {
    boolean add(UmsStudent umsStudent);
    boolean check(String field, String value, Long id);
    boolean delete(UmsStudent umsStudent);
    String login(String username, String password);
    boolean uploadIcon(MultipartFile file, Long id) throws IOException, ServerException, InsufficientDataException, ErrorResponseException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

    UmsStudent getStudent(Long id);

    Boolean sendVerificationCode(String email) throws ServerException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

    Boolean verifyCode(String email, String code);

    Boolean resetPassword(String email, String password);

    boolean existsById(Long userId);

    List<UmsStudent> uploadList(MultipartFile file) throws IOException;

    boolean saveBatch(String list);
    List<UmsStudent> listByName(String name);
}
